package com.haoxchen.customizestart;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: zhangquancheng
 * @Description: 自定义配置进行自动装配
 */
@Configuration
@EnableConfigurationProperties(CustomizeProperties.class)
@ConditionalOnWebApplication
public class CustomizeConfiguration {
    @Autowired
    CustomizeProperties customizeProperties;

    public CustomizeConfiguration(CustomizeProperties customizeProperties) {
        this.customizeProperties = customizeProperties;
    }

}
